<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <script src="../vue.js"></script>
</head>

<body>

  <div id="app">

    <div v-if="type ==='a'">
      <h1>A-1</h1>
      <h1>A-2</h1>
    </div>

    <h1 v-else-if="type==='b'">b</h1>

    <h1 v-else>C</h1>

  </div>

  <script>
    var vm = new Vue({
      el: "#app",
      data: {
        type: 'a'
      }
    })

  </script>

</body>

</html>